﻿#pragma once
#include "PropertyEditEntry.h"

class WidgetPropertyEditEntry : public PropertyEditEntry {
    Q_OBJECT
    struct WidgetPropertyEditBoxPrivate;
    QScopedPointer<WidgetPropertyEditBoxPrivate> p;
public:
    ~WidgetPropertyEditEntry();
    explicit WidgetPropertyEditEntry(QWidget *parent = nullptr);
    WidgetPropertyEditEntry(void *object, QWidget *parent = nullptr);

public:
    void setObject(void *object) override;

protected slots:
    void onTick() override;

private:
    void initUi();
    void retranslateUi();
};
